package com.linln.common.enums;

import lombok.Getter;

/**
 * 数据状态枚举-用于逻辑删除控制
 * @author 小懒虫
 * @date 2018/8/14
 */
@Getter
public enum AdEnum {

	
    //广告时长   1=7天/2=半个月/3=1个月/4=1季度/5=半年/6=1年

    INDEX(1, "首页"),
    STORE(2, "商户页");
     

    private Integer code;

    private String message;

    AdEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    
    public static String getVal(Integer value) {
    	AdEnum[] enums = values();
        for (AdEnum businessModeEnum : enums) {
            if (businessModeEnum.getCode()==value) {
                return businessModeEnum.getMessage();
            }
        }
        return null;
    }
}

